﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ibba.src.norisk.ServiceImplementation
{
    public class TranslateTipoLimite
    {
        public static List<Contracts.TipoLimite> Translate(List<BusinessEntities.TipoLimite> pTipoLimite)
        {
            return ((
                        from p in pTipoLimite
                        select new Contracts.TipoLimite()
                        {
                            CodTipoLimite = p.CodTipoLimite,
                            DscTipoLimite = p.DscTipoLimite
                        }
                     ).ToList()
                  );
        }

        public static List<BusinessEntities.TipoLimite> Translate(List<Contracts.TipoLimite> pTipoLimite)
        {
            return ((
                        from p in pTipoLimite
                        select new BusinessEntities.TipoLimite()
                        {
                            CodTipoLimite = p.CodTipoLimite,
                            DscTipoLimite = p.DscTipoLimite
                        }
                     ).ToList()
                  );
        }
    }
}
